import request from '@/utils/request'

export function initGoods (params) {
  return request({
    url: '/goods/init',
    method: 'get',
    data: params
  })
}
export function addProp (params) {
  return request({
    url: '/prop/add',
    method: 'post',
    data: params
  })
}
export function delProp (params) {
  return request({
    url: '/prop/del',
    method: 'post',
    data: params
  })
}
export function addSpec (params) {
  return request({
    url: '/spec/add',
    method: 'post',
    data: params
  })
}
export function delSpec (params) {
  return request({
    url: '/spec/del',
    method: 'post',
    data: params
  })
}
export function checkSpec (params) {
  return request({
    url: '/spec/check',
    method: 'post',
    data: params
  })
}
export function updateSku (params) {
  return request({
    url: '/sku/update',
    method: 'post',
    data: params
  })
}
